.class Lcom/direction/hold/ui/CommonActivity$10;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field private synthetic a:Landroid/widget/EditText;

.field private synthetic b:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;Landroid/widget/EditText;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$10;->b:Lcom/direction/hold/ui/CommonActivity;

    iput-object p2, p0, Lcom/direction/hold/ui/CommonActivity$10;->a:Landroid/widget/EditText;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$10;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$10;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/direction/hold/ui/CommonActivity;->b(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v1, p0, Lcom/direction/hold/ui/CommonActivity$10;->b:Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {v1}, Lcom/direction/hold/ui/CommonActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    sget-object v2, Lcn/cheln/explorer/ds/a;->d:Landroid/net/Uri;

    invoke-static {v0}, Lcn/cheln/explorer/ds/b/a;->a(Ljava/io/File;)Landroid/content/ContentValues;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    goto :goto_0
.end method
